﻿<%@ Page Language="C#" MasterPageFile="~/MasterPage.master" AutoEventWireup="true" CodeFile="ZTEPIMAndPowerManage.aspx.cs" Inherits="ProductManage_RFProductManage_Manage_ZTEPIMAndPowerManage" Title="无标题页" %>

<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
<asp:UpdatePanel ID="UpdatePanel1" runat="server">
    <ContentTemplate>
    <div>
    <div>
        <br />
        产品类型列表：        
    </div>
    <div style="text-align:center ;">
        <asp:GridView ID="GridView1" runat="server" AllowPaging="True" 
            AutoGenerateColumns="False" BackColor="White" BorderColor="White" 
            BorderStyle="Ridge" BorderWidth="2px" CellPadding="3" CellSpacing="1" 
            DataKeyNames="ID,ProductTypeID,TestType,TestItem,TestPort,TestTarget" 
            GridLines="None" onpageindexchanging="GridView1_PageIndexChanging" 
            onrowcommand="GridView1_RowCommand" onrowdatabound="GridView1_RowDataBound" 
            onrowdeleting="GridView1_RowDeleting" Width="100%">
            <RowStyle BackColor="#DEDFDE" ForeColor="Black" />
            <Columns>
                <asp:BoundField DataField="ProductTypeID" HeaderText="产品类型" />
                <asp:BoundField DataField="TestType" HeaderText="测试类型" />
                <asp:BoundField DataField="TestItem" HeaderText="测试项目" />
                <asp:BoundField DataField="TestPort" HeaderText="测试端口" />
                <asp:BoundField DataField="TestTarget" HeaderText="测试目标" />
                <asp:CommandField HeaderText="删除" ShowDeleteButton="True" />
                <asp:ButtonField CommandName="Insert" HeaderText="新增" Text="新增" />
            </Columns>
            <FooterStyle BackColor="#C6C3C6" ForeColor="Black" />
            <PagerStyle BackColor="#C6C3C6" ForeColor="Black" HorizontalAlign="Right" />
            <EmptyDataTemplate>
                <asp:DetailsView ID="DetailsView1" runat="server" 
                    AutoGenerateInsertButton="True" AutoGenerateRows="False" BackColor="White" 
                    BorderColor="White" BorderStyle="Ridge" BorderWidth="2px" CellPadding="3" 
                    CellSpacing="1" DefaultMode="Insert" GridLines="None" 
                    oniteminserting="DetailsView1_ItemInserting" 
                    onmodechanging="DetailsView1_ModeChanging">
                    <FooterStyle BackColor="#C6C3C6" ForeColor="Black" />
                    <RowStyle BackColor="#DEDFDE" ForeColor="Black" />
                    <PagerStyle BackColor="#C6C3C6" ForeColor="Black" HorizontalAlign="Right" />
                    <Fields>
                        <asp:BoundField DataField="ProductTypeID" HeaderText="产品类型" />
                        <asp:TemplateField HeaderText="测试类型">
                            <EditItemTemplate>
                                <asp:TextBox ID="TextBox1" runat="server" Text='<%# Bind("TestType") %>'></asp:TextBox>
                            </EditItemTemplate>
                            <InsertItemTemplate>
                                <asp:DropDownList ID="DDLTestType" runat="server" Width="100%">
                                            <asp:ListItem Value="交调">交调</asp:ListItem>
                                            <asp:ListItem Value="大功率">大功率</asp:ListItem>
                                </asp:DropDownList>
                            </InsertItemTemplate>
                            <ItemTemplate>
                                <asp:Label ID="Label1" runat="server" Text='<%# Bind("TestType") %>'></asp:Label>
                            </ItemTemplate>
                        </asp:TemplateField>
                        <asp:BoundField DataField="TestItem" HeaderText="测试项目" />
                        <asp:BoundField DataField="TestPort" HeaderText="测试端口" />
                        <asp:BoundField DataField="TestTarget" HeaderText="测试目标" />
                    </Fields>
                    <HeaderStyle BackColor="#4A3C8C" Font-Bold="True" ForeColor="#E7E7FF" />
                    <EditRowStyle BackColor="#9471DE" Font-Bold="True" ForeColor="White" />
                </asp:DetailsView>
            </EmptyDataTemplate>
            <SelectedRowStyle BackColor="#9471DE" Font-Bold="True" ForeColor="White" />
            <HeaderStyle BackColor="#4A3C8C" Font-Bold="True" ForeColor="#E7E7FF" />
        </asp:GridView>    
    <br />
    <br />
    </div>
    <br />
    <br />
    </div> 
    </ContentTemplate> 
    </asp:UpdatePanel> 
</asp:Content>

